package com.silverbox.shopper.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.silverbox.shopper.entity.RelGoodsTime;
import com.silverbox.shopper.entity.extend.DaypartingGoods;

public interface RelGoodsTimeMapper {
	int deleteByPrimaryKey(Integer id);

	int insert(RelGoodsTime record);

	int insertSelective(RelGoodsTime record);

	RelGoodsTime selectByPrimaryKey(Integer id);

	int updateByPrimaryKeySelective(RelGoodsTime record);

	int updateByPrimaryKey(RelGoodsTime record);

	/**
	 * 获取分时段商品
	 * 
	 * @param storeId
	 * @return
	 */
	List<DaypartingGoods> getDaypartingGoods(@Param("storeId") Integer storeId, @Param("weekNum") Integer weekNum,
			@Param("nowDate") String nowDate);
}